package com.heima.exam.p7;

public class SingleTon1 {
    private SingleTon1() {
    }

    public static SingleTon1 INSTANCE;

    public static SingleTon1 getInstance() {
        if (INSTANCE == null) {
            synchronized (SingleTon1.class) {
                if (INSTANCE == null) {
                    INSTANCE = new SingleTon1();
                }
            }
        }
        return INSTANCE;
    }
}
